/*
 * Equipment.cpp
 *
 *  Created on: Jun 16, 2012
 *      Author: gonzalo
 */

#include "Equipment.h"

Equipment::Equipment(BonusType type,Widget* parent) {
	this->type = type;
	this->parent = parent;
	this->emptyFlag = false;
}

Equipment::Equipment(DTOEquipment* dtoEquipment,Widget* parent) {
	this->type = (BonusType)dtoEquipment->bonusType;
	this->parent = parent;
	this->emptyFlag = false;
}

Equipment::~Equipment() {}

BonusType Equipment::getType() const
{
    return type;
}

bool Equipment::isEmpty(){
	return emptyFlag;
}

int Equipment::reduceLife(int value,playElement element){
	//Para los equipment que no tienen vida, no absorben el value
	return value;
}
